package ace.j2se.l1;

import java.lang.reflect.InvocationTargetException;

public class PersonModelDriven extends AbsModelDriven {
	Person person = new Person();

	@Override
	public void save() throws SecurityException, IllegalArgumentException,
			NoSuchFieldException, NoSuchMethodException,
			IllegalAccessException, InvocationTargetException {
		person.setName("aaaa");
		super.save();
	}

	@Override
	public Object getModel() {
		return person;
	}

	public static void main(String[] args) throws SecurityException,
			IllegalArgumentException, NoSuchFieldException,
			NoSuchMethodException, IllegalAccessException,
			InvocationTargetException {
		PersonModelDriven b = new PersonModelDriven();
		b.save();
	}

}
